<?php 
class PublicProfileMetaForm extends CFormModel
{
	public $realname;
	public $mobile;
	public $sex;

	public function rules()
	{
		return array(
			array('realname','length','max'=>100),
			array('sex, mobile', 'numerical', 'integerOnly'=>true),
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'realname'=>'Tên thật',
			'mobile'=>'Mobile',
			'sex'=>'Giới tính',
		);
	}
}